package com.dubito.noteapp.data.database.repository

import com.dubito.noteapp.domain.model.Note
import kotlinx.coroutines.flow.Flow

/**
 * author: LiLiang
 * createTime: 2022/10/7-11:26
 * remark:
 **/
interface NoteRepository {

    fun getNotes(): Flow<List<Note>>

    suspend fun getNoteById(id: Int): Note?

    suspend fun insertNote(note: Note)

    suspend fun deleteNote(note: Note)
}